<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonEdit.jsp"%>
<%@ include file="/commons/tabs.jsp"%>
<%@ include file="/commons/validation.jsp"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>审批 分帧页</title>
<link href="${ctx}/css/grid.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx}/scripts/div/common.js"></script>
<script type="text/javascript" src="${ctx}/scripts/public.js"></script>
<script type="text/javascript" src="${ctx}/scripts/common/prototype.js"></script>
<script type="text/javascript" src="${ctx}/scripts/common.js"></script>
<script type="text/javascript" src="${ctx}/scripts/ajaxException.js"></script>

<script type="text/javascript">

	function setRemarkStyle(type){

		if(type == "001"){
			Validation.removeElmValidate('remark');
			$('remark').className = " max-length-200";
			$('remark_td').className="aux_intable_td2";
		}else{
			$('remark').className = "required  max-length-200";
			$('remark_td').className="aux_intable_require_more";
		}
	}

	function submitApproval(){
		var isTrue=$("approvalForm").fireEvent("onSubmit");
  		if(isTrue){

			parent.disabledSubmit(false);

  			var params = $("approvalForm").serialize();
			var url = "${ctx}/renovation_depositAccountingAction.do?method=addRenovateApproval";
			sendAjaxRequest(url,params,function(response){

				parent.disabledSubmit(true);

				ajaxSubmitException(response.responseText);

				parent.refleshClose();
			});
		}
	}


</script>
</head>

<body>
<div >
<table width="100%" border="0" align="center" cellpadding="5" cellspacing="0">
	<tr>
		<td>
<form id="approvalForm" name="approvalForm" method="post" action=""  class="required-validate">
	<input id="depositAccountingId" name="depositAccountingId" value="${depositAccountingId }" type="hidden">
		<table width="100%" border="0" cellpadding="0" cellspacing="1" class="aux_intable_color">
			<tr>
    			<td valign="top" class="aux_intable_td1">审批结果：</td>
    			<td class="aux_intable_require">
    				<input type="radio" name="result" value="001" onClick="setRemarkStyle('001')"  checked="checked"/>通 过&nbsp;　&nbsp;　&nbsp;　&nbsp;　&nbsp;
                	<input type="radio" name="result" value="002" onClick="setRemarkStyle('002')"/>不通过</td>
    		</tr>
			<tr>
          		<td height="64" valign="top" class="aux_intable_td1">备 注：</td>
          		<td class="aux_intable_td2" id="remark_td">
          			<textarea name="remark" id="remark" cols="40" rows="3" class="max-length-100"></textarea></td>
        	</tr>
         </table>
</form>
         </td>
     </tr>
</table>
</div>
</body>
</html>
